import Vue from 'vue';
import VueRouter from 'vue-router';
import RoomList from "../pages/RoomList";
import GoBang from "../pages/GoBang";

Vue.use(VueRouter);

const routes = [
    {path:"/",name:"index",component:RoomList},
    {path:"/go/bang",name:"bang",component:GoBang}
];

const routerInit = new VueRouter({
    mode: 'history',
    routes,
});

export default routerInit
